{#
/**
 * @file
 * Default theme implementation to display a private message thread.
 *
 * Available variables:
 * - private_message_thread: The private message thread entity
 *    with limited access to object properties and methods.
 * - content: All private message thread items. Use {{ content }} to print them all,
 *   or print a subset such as {{ content.field_example }}. Use
 *   {{ content|without('field_example') }} to temporarily suppress the printing
 *   of a given child element.
 * - last_update: Themed display of the last update time for the thread
 * - url: Direct URL of the current private message thread.
 * - view_mode: View mode; for example, "teaser" or "full".
 * - logged_in: Flag for authenticated user status. Will be true when the
 *   current user is a logged-in member.
 *
 * @see template_preprocess_private_message()
 *
 * @ingroup themeable
 */
#}
{% if view_mode == 'preview' %}
<a href="/manage/private_messages/{{id}}">
{{ content }}
</a>
{% elseif view_mode == 'default' %}
<div data-block-plugin-id="views_block:dyniva_private_message-block_list" class="block block-dyniva-message dyniva-message-box">
    <h2>{{'Sender'|t}}: {{author}} <span class="">
        {{'Participants'|t}}:
        {% if members_count > 1 %}
        {% if send_type != 'all' %}{{'You and'|t}}{% endif %} {{content.members}}
        {% else %}
        {{'You'|t}}
        {% endif %}
    </span>
    </h2>
    <div class="content">
        {{ content|without('members') }}
    </div>
</div>
{% else %}
{{ content }}
{% endif %}
